import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import '@/assets/css/global.css';
import { Message } from 'element-ui';
import * as echarts from 'echarts';

// 右键点击事件（右键生成菜单）
// import VueContextMenu from 'vue-contextmenu'

Vue.config.productionTip = false

Vue.use(ElementUI);
// Vue.use(VueContextMenu);

Vue.prototype.$msg = (options) => {
    return Message({
        showClose: true,
        duration: 3000,
        type: options.type,
        message: options.message
    })
};


Vue.prototype.$echarts = echarts;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
